<select name="cid" lay-search="" lay-filter="cid" lay-search>
    <option value="">请选择类型</option>
    <?php foreach ($cids as $v){?>
    <option value="{$v.id}" <?php if(isset($data['cid']) && $data['cid']==$v['id']){ echo 'selected';}?>>{$v.title}</option>
    <?php }?>
</select>